<div class="cont">
    <ul>
        <?php foreach($articles as $key=>$article):?>
        <?php if($article->post->view_users->id() && in_array($user->user_id, FUNC::setArrayByField(array('user_id'), $article->post->view_users, false))): ?>
        <?php $read = 'n' ?>
        <?php else: ?>
        <?php $read = 'y' ?>
        <?php endif ?>
        <li class="<?php echo $read ?>">
            <a href="#">
                <b>[<?php echo $article->column->name ?>]</b>
            </a>
            <a href="<?php echo url('articles/view', array('art_id'=>$article->art_id, 'col_id'=>$article->col_id)) ?>"><?php echo h($article->title) ?></a>
            <span><?php echo $article->user->username ?>
                <em><?php echo FUNC::d($article->created, 'Y-m-d') ?></em>
            </span>
        </li>
        <?php endforeach ?>
    </ul>
</div>
<div class="pager">
    <?php echo Helper_Common::print_pager($records, $pagesize, FUNC::getV('page'), url('/more', FUNC::autoparams(array('page'=>'p__')))) ?>
</div>